package com.fanketly.funacg2.data.repo

import com.fanketly.funacg2.data.db.WorkDao
import com.fanketly.funacg2.data.entity.WorkEntity
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
import javax.inject.Singleton

@Singleton
class FavouriteRepo @Inject constructor(
    private val workDao: WorkDao,
) {
    fun getAll() = workDao.getAll()

    suspend fun insert(workEntity: WorkEntity) = workDao.insert(workEntity)

    suspend fun delete(id:Int) = workDao.delete(id)

    suspend fun isFavourite(id:Int)=workDao.isFavourite(id)


}